import Vue from 'vue'
import VueRouter from 'vue-router'
import Find from '@/views/Find'
import My from '@/views/My'
import Friend from '@/views/Friend'
import Is404 from '@/views/Is404'
import Detail from '@/views/Detail'
Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    component: Find
  },
  {
    path: '/find',
    component: Find
  },
  {
    path: '/my',
    component: My
  },
  {
    path: '/friend',
    component: Friend
  },
  {
    path: '/detail/:id',
    component: Detail
  },
  {
    path: '*',
    component: Is404
  }

]
const router = new VueRouter({
  routes,
  mode: 'history'
})

export default router
